package com.smartStatus.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName : SysDictDetails
 * @Author : lby
 * @Date: 2020/12/16 13:55
 * @Description : 字典明细类
 */
@Data
@TableName("sys_dict_details")
@ApiModel
public class SysDictDetails extends Model<SysDictDetails> {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 字典项id
     */
    @ApiModelProperty("字典项id")
    @TableField(exist = false)
    private Integer dictId;

    /**
     * 字典名称
     */
    @ApiModelProperty("字典名称")
    @TableField(exist = true)
    private String dictName;

    /**
     * 字典类型
     */
    @ApiModelProperty("字典类型")
    @TableField(exist = true)
    private Integer dictType;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(exist = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 删除标志
     * 0:存在
     * 1：删除
     */
    @ApiModelProperty("删除标志")
    @TableField(exist = true)
    @TableLogic
    private Integer delFlag;
    /**
     * 字典描述
     */
    @ApiModelProperty("字典描述")
    @TableField(exist = true)
    private String dictDescribe;

    /**
     * 字典排序
     */
    @ApiModelProperty("字典排序")
    @TableField(exist = true)
    private Integer dictSort;

    /**
     * 字典具体值
     */
    @ApiModelProperty("字典具体值")
    @TableField(exist = true)
    private Integer dictValue;
}
